﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ThesisSystem.Models
{
    public class Profession
    {
        public int ProfessionID { get; set; }

        [StringLength(50)]
        [Required(ErrorMessage="*")]
        [Display(Name="专业")]
        public string ProfessionName { get; set; }

        public int DepartmentID { get; set; }

        public virtual Department Department { get; set; }
    }
}